<form method="post" accept-charset="utf-8" action="<?php echo site_url(uri_string().'/roles')?>">
    <div id="box_training_preferences">

        <p class="title_high"><?php echo lang('label_edit_roles');?></p>

        <div class="em">

            <?php foreach ($squad_preferences_roles as $role): ?>
            <div><?php echo form_checkbox($role->id, 'accept', $role->show_on_training); ?> <?php echo ($role->role); ?></div>
            <?php endforeach; ?>


            <div id="bubble">
                <?php echo lang('preferences_bubble');?>
                <img src="<?php echo img_theme('mcgannigan/mcgannigan_bla.png');?>"/>
            </div>


        </div>
        <input type="submit" name="submit" value="<?php echo lang('label_save_changes');?>" class="save_button" />
        </div>
</form>